<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<meta name="decorator" content="moduleList" />
<link
	href="${staticPath}/lib/datetimepicker/0.0.11/css/bootstrap-datetimepicker.min.css"
	rel="stylesheet" type="text/css">
<link href="${staticPath}/lib/chosen/1.1.0/chosen.min.css"
	rel="stylesheet" type="text/css">
<script type="text/javascript">
	$(document).ready(function() {

	});
</script>
</head>
<body>
	<form:form id="selfrunForm" modelAttribute="statementSelfrun"
		method="post"
		action="${contextPath}/biz/statement/statementSelfrun/list"
		class="form-inline">
		<ol class="breadcrumb map_1">
			<li><a href="${contextPath}/index">首页</a></li>
			<li><a
				href="${contextPath}/statement/stm/payinslip/list?navId=${navId}">采购销售</a></li>
			<li class="active">自营对账</li>
		</ol>
		<div class="o-l-search-builder f_1">
			<div class="f_8">
				<div class="f_2">
					<div class="col-sm-8 f_6">
						<form:input id="billNo" path="billNo" class="f_5"
							placeholder="订单号" />
					</div>
					<button type="submit" class="btn btn-warning btn_1">查&nbsp;询</button>
				</div>
			</div>
		</div>
		<tags:message content="${message}" />
		<div class="o-l-search-builder f_9">
			<table class="table table-striped table-hover o-l-table table-bordered" id="table1">
				<thead class="t_1">
					<tr>
						<th>勾单结算</th>
						<th>对账状态</th>
						<th>日期</th>
						<th>单据类型</th>
						<th>自营单据单号</th>
						<th>金额</th>
					</tr>
				</thead>
				<tbody>
					<c:forEach items="${page.list}" var="statementSelfrun">
						<tr
							data-herf="${contextPath}/biz/statement/statementSelfrun/view?id=${statementSelfrun.id}"
							data-target="_self">
							<td>${statementSelfrun.isConfirmed}</td>
							<td><ossp:value dictType="RECONCILIATION_TYPE"
									key="${statementSelfrun.isReconciliation}"></ossp:value></td>
							<td><fmt:formatDate value="${statementSelfrun.date}"
									pattern="yyyy-MM-dd" /></td>
							<c:if test="${statementSelfrun.billType eq 'th'}">
								<td>退货</td>
							</c:if>
							<c:if test="${statementSelfrun.billType eq 'ys'}">
								<td>验收</td>
							</c:if>
							<c:if test="${statementSelfrun.billType eq 'tj'}">
								<td>调价</td>
							</c:if>
							<td>${statementSelfrun.billNo}</td>
							<td data-accounting="${statementSelfrun.amount}"></td>
						</tr>
					</c:forEach>
				</tbody>
			</table>
		</div>
		<pager:pager pageSize="${page.pageSize}" pageNo="${page.pageNo}"
			url="" total="${page.total}" />
		<script type="text/javascript" src="${staticPath}/js/list.js"></script>
	</form:form>
</body>
</html>